﻿using IQIGame.Onigao.Framework;
using UnityEditor;
using UnityEditor.UI;

namespace IQIGame.Onigao.Game.Editors
{
    [CustomEditor(typeof(ExRawImage))]
    [CanEditMultipleObjects]
    public class ExRawImageEditor : RawImageEditor
    {
        private SerializedProperty _isAutoI18N;
        protected override void OnEnable()
        {
            base.OnEnable();
            _isAutoI18N = serializedObject.FindProperty(nameof(_isAutoI18N));
        }

        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            EditorGUILayout.PropertyField(_isAutoI18N);
            serializedObject.ApplyModifiedProperties();
        }
    }

}
